package com.wechat.order.util.HttpUtils;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by zzy on 2017/12/21.
 */
@Slf4j
public class HttpServerUtil {
    /**
     * 获取客户端真是IP
     *
     */

    public static String getClientIp(HttpServletRequest request){
        String ip="";
        String user=request.getRemoteUser();
        ip=request.getRemoteAddr();
        log.info("user={},ip={}------请求登陆",user,ip);
        return ip;
    }
}
